Name | player chats |
Event Lines | player chats |
Triggers | when a player chats. |
Generated Examples | after player chats: |
Has Player | Always. - this adds switches 'flagged:<flag name>' + 'permission:<node>', in addition to the '<player>' link. |
Switches | message:<matcher> to only process the event if the chat message matches an advanced matcher. |
Contexts | <context.message> returns the player's message as an Element.
<context.format> returns the chat message's raw format.
<context.full_text> returns the full text of the chat message (ie, the written message with the format applied to it).
<context.recipients> returns a list of all players that will receive the chat.
|
Determine | ElementTag to change the message.
"FORMAT:<ScriptTag>" to set the format script the message should use. "RAW_FORMAT:<ElementTag>" to set the format directly (without a format script). (Use with caution, avoid if possible). "RECIPIENTS:<ListTag(PlayerTag)>" to set the list of players that will receive the message. |
Cancellable | True - This adds <context.cancelled> and determine 'cancelled' or 'cancelled:false' |
Has Location | True - This adds the switches 'in:<area>', 'location_flagged:<flag>', ... |
Group | Player |
Warning(s) | Using this will forcibly sync the chat thread. |
Source | https://github.com/DenizenScript/Denizen/blob/dev/plugin/src/main/java/com/denizenscript/denizen/events/player/ChatScriptEvent.java#L28 |